#pragma once
#include <iostream>
#include <iomanip>
#include <vector>
#include "SystemUI.h"

class DataCenter;

class Admin
{
    friend class DataCenter;

private:
    std::string _username;
    std::string _password;

public:
    static Admin ERROR_ADMIN;
    Admin() = default;
    bool addUser(std::string username, std::string password, std::string department) const;
    bool deleteUser(std::string username) const;
    void showAllUsers() const;
    bool addMeetingRoom(int id, int capacity) const;
    bool deleteMeetingRoom(int id) const;
    void showAllMeetingRooms() const;
    void clearAllMeetingRoomsStatus() const;

    // 自身属性和构造方法
    std::string getUsername() const;
    Admin(std::string username, std::string password);
};